<div id="blog">
	<h2>Blog</h2>
	<?php foreach ($posts as $post): ?>
	<div class="postblock">
		<a href="<?php echo $this->createUrl('store/index', array('name'=>$post['sname'])) ?>"><img src="/images/marcas/<?php echo $post['sid'] ?>/<?php echo $post['logo_url'] ?>" class="logo"/></a>
		<div class="post">
			<h4><a id="post<?php echo $post['id'] ?>" href="#post<?php echo $post['id'] ?>"><?php echo $post['title'] ?></a></h4>
			<div class="image">
				<img src="/images/post/<?php echo $post['id'] ?>/<?php echo $post['image_url'] ?>" />
			</div>
			<p><?php echo $post['resume'] ?></p>
			<div id = "content<?php echo $post['id'] ?>" style="display:none" class="body">
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<script type="text/javascript" charset="utf-8">
		$("#post<?php echo $post['id'] ?>").click(function(){
			$.get("<?php echo $this->createUrl('post/content', array('id'=>$post['id'])) ?>", function(data){
				$("#content<?php echo $post['id'] ?>").html(data);
				$("#content<?php echo $post['id'] ?>").fadeIn(500);
			});
		});
	</script>	
	<?php endforeach ?>
</div>